package com.nba.service.impl;

import java.util.Date;
import java.util.List;

import com.nba.bean.Atlas;
import com.nba.dao.AtlasDao;
import com.nba.dao.impl.AtlasDaoImpl;
import com.nba.service.AtlasService;

public class AtlasServiceImpl implements AtlasService {
	
	AtlasDao atlasdao = new AtlasDaoImpl();
	@Override
	public List<Atlas> selectAtlasAll() {
		return atlasdao.selectAtlasAll();
	}

	@Override
	public int addAtlas(String atlasTheme, String atlasContent, String atlasUrl, Date AtlasTime, int typeId) {
		return atlasdao.insertAtlas(atlasTheme, atlasContent, atlasUrl, AtlasTime, typeId);
	}

}
